package core.schedule.snake.schedule.core;

import java.util.concurrent.TimeUnit;

public class TaskInfo {
	
	public static final String IMPL_TYPE_JDK="1";
	public static final String IMPL_TYPE_QUTARZ="2";
	
	/**
	 * 调度服务实现类型
	 */
	private String implType=IMPL_TYPE_JDK;
	
	/**
	 * 实现类包的路径
	 */
	private String packagePath;
	
	/**
	 * 初始执行延迟 
	 */
	private long initTime;
	
	/**
	 * 间隔时间
	 */
	private long jiangeTime;
	
	/**
	 * 间隔单位
	 */
	private TimeUnit timeUnit;
	
	/**
	 * linux 表达式
	 */
	private String cronExpression;
	
	
	public String toString() {
		return "扫描实现类路径："+packagePath+"\r\n"+
		"初次执行延时时间"+initTime+"\r\n"+
		"间隔延时时间"+jiangeTime+"\r\n"+
		"时间单位"+timeUnit+"\r\n"+
		"quartz表达式："+cronExpression+"\r\n"+
		"定时器类型"+implType;
	}
	

	public String getPackagePath() {
		return packagePath;
	}

	public void setPackagePath(String packagePath) {
		this.packagePath = packagePath;
	}

	public long getInitTime() {
		return initTime;
	}

	public void setInitTime(long initTime) {
		this.initTime = initTime;
	}

	public long getJiangeTime() {
		return jiangeTime;
	}

	public void setJiangeTime(long jiangeTime) {
		this.jiangeTime = jiangeTime;
	}

	public TimeUnit getTimeUnit() {
		return timeUnit;
	}

	public void setTimeUnit(TimeUnit timeUnit) {
		this.timeUnit = timeUnit;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}


	public String getImplType() {
		return implType;
	}


	public void setImplType(String implType) {
		this.implType = implType;
	}
	
	
}
